package com.qy.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * u_voucher_info
 * 
 * @author zhangwenlong
 * @date Fri Feb 09 10:42:36 GMT+08:00 2018
 */
public class VoucherInfo extends DataObject implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /**  */
    private int id;

    /**  */
    private int userId;

    /** 代金券类型（对应系统代金券id） */
    private int voucherType;

    /**  */
    private int status;

    /**  */
    private Date createDate;

    /**  */
    private Date useDate;

    /**  */
    private int buyUserId;

    /**  */
    private String bindPhone;

    /** 支付id */
    private int payId;

    public void setId(int id) {
	if (this.id != id) {
	    this.id = id;
	    setOp(Option.Update);
	}
    }

    public int getId() {
	return id;
    }

    public void setUserId(int userId) {
	if (this.userId != userId) {
	    this.userId = userId;
	    setOp(Option.Update);
	}
    }

    public int getUserId() {
	return userId;
    }

    public void setVoucherType(int voucherType) {
	if (this.voucherType != voucherType) {
	    this.voucherType = voucherType;
	    setOp(Option.Update);
	}
    }

    public int getVoucherType() {
	return voucherType;
    }

    public void setStatus(int status) {
	if (this.status != status) {
	    this.status = status;
	    setOp(Option.Update);
	}
    }

    public int getStatus() {
	return status;
    }

    public void setCreateDate(Date createDate) {
	if (this.createDate == null || !this.createDate.equals(createDate)) {
	    this.createDate = createDate;
	    setOp(Option.Update);
	}
    }

    public Date getCreateDate() {
	return createDate;
    }

    public void setUseDate(Date useDate) {
	if (this.useDate == null || !this.useDate.equals(useDate)) {
	    this.useDate = useDate;
	    setOp(Option.Update);
	}
    }

    public Date getUseDate() {
	return useDate;
    }

    public void setBuyUserId(int buyUserId) {
	if (this.buyUserId != buyUserId) {
	    this.buyUserId = buyUserId;
	    setOp(Option.Update);
	}
    }

    public int getBuyUserId() {
	return buyUserId;
    }

    public void setBindPhone(String bindPhone) {
	if (this.bindPhone == null || !this.bindPhone.equals(bindPhone)) {
	    this.bindPhone = bindPhone;
	    setOp(Option.Update);
	}
    }

    public String getBindPhone() {
	return bindPhone;
    }

    public void setPayId(int payId) {
	if (this.payId != payId) {
	    this.payId = payId;
	    setOp(Option.Update);
	}
    }

    public int getPayId() {
	return payId;
    }

}
